package com.lk.mapper;

import com.lk.entity.Record;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface RecordMapper {

    /**
     * 查询全部
     * @return 返回全部视频
     */
    @Select("SELECT * FROM tb_lk_record ORDER BY video_createTime DESC")
    List<Record> findAll();

    /**
     * 删除视频
     * @param id id
     */
    @Delete("DELETE FROM tb_lk_record WHERE id = #{id}")
    int deleteById(String id);
}
